home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 26 / 026.d81 / t.disk editor 12 < prev    next >
Text File  |  2022-08-26  |  7KB  |  404 lines

  1.  
  2.  
  3.          128 DISK EDITOR
  4.                 by
  5.          John J. Kottler
  6.  
  7.  
  8. COMMODORE MICROCOMPUTERS MAGAZINE
  9. July/August, 1986
  10. p.104
  11.  
  12.  
  13. **************************************
  14. NOTE: Because this program is written
  15. for the Commodore 128, it cannot be
  16. run like other programs on LOADSTAR.
  17. To run this program, press your
  18. C-128's RESET button.  This will
  19. display a menu of all C-128 programs
  20. in this issue.  Choose the program you
  21. wish to run from this menu.
  22. **************************************
  23.  
  24.  
  25.   The 128 DISK EDITOR allows you to
  26.  
  27. read, edit, and write to almost every
  28.  
  29. sector on a disk.  You can also jump
  30.  
  31. file links, jump to previous links,
  32.  
  33. and search forward and backward
  34.  
  35. through sectors.  As you might expect,
  36.  
  37. detailing the commands that allow you
  38.  
  39. to accomplish these tasks will take a
  40.  
  41. little time, so without further
  42.  
  43. ado....
  44.  
  45.  
  46. FIRST THINGS FIRST....
  47.  
  48.  
  49.   The 128 DISK EDITOR is designed to
  50.  
  51. be used with the 1571 disk drive, but
  52.  
  53. will also work with the 1541 disk
  54.  
  55. drive.  If you are using a 1541,
  56.  
  57. press the "*" key before you start
  58.  
  59. editing to select the single sided
  60.  
  61. mode.  If you are using a 1571, you
  62.  
  63. may edit both single and double-sided
  64.  
  65. diskettes.  Pressing the "*" will
  66.  
  67. determine the type of disk you have in
  68.  
  69. the drive.
  70.  
  71.  
  72. THE WORK SCREEN
  73.  
  74.  
  75.   When you run 128 DISK EDITOR, after
  76.  
  77. a brief delay, you will see the work
  78.  
  79. screen.  A list of DISK EDITOR's
  80.  
  81. commands is displayed at the bottom of
  82.  
  83. the screen.  Above the list, you will
  84.  
  85. see three boxes: two which display the
  86.  
  87. present and previous track and sector,
  88.  
  89. one which displays the current cursor
  90.  
  91. position and character value.  On top
  92.  
  93. of these three boxes is a text window
  94.  
  95. which displays the information in a
  96.  
  97. sector.
  98.  
  99.  
  100.   Because you have not read a sector
  101.  
  102. yet, the window is empty.  When the
  103.  
  104. window is empty, you can use only
  105.  
  106. four commands: READ, DISK DIRECTORY,
  107.  
  108. DOS COMMANDS, and SELECT SIDE.
  109.  
  110. Commands WRITE, TEXT, VALUE, JUMP,
  111.  
  112. JUMP BACK, and PLUS or MINUS will
  113.  
  114. have to wait until you've read a
  115.  
  116. sector.
  117.  
  118.  
  119. READING A SECTOR....
  120.  
  121.  
  122.   When you press "R" to read a
  123.  
  124. sector, a prompt at the bottom of the
  125.  
  126. screen will ask you to enter the num-
  127.  
  128. ber of the track and sector you wish
  129.  
  130. to read (or you can press RETURN twice
  131.  
  132. for default value of TRACK 18, SECTOR
  133.  
  134. 0). Then, if there are no errors in
  135.  
  136. that sector, the window displays that
  137.  
  138. sector's data in ASCII form.  (If
  139.  
  140. there IS an error, the error will be
  141.  
  142. displayed on the screen.)
  143.  
  144.  
  145. WRITING TO A SECTOR....
  146.  
  147.  
  148.   Choosing a sector to write to is
  149.  
  150. just like choosing a sector to read.
  151.  
  152. You can use this command to copy the
  153.  
  154. data on the current track and sector
  155.  
  156. to any other track and sector.  For
  157.  
  158. example, if the current track and
  159.  
  160. sector were TRACK 1 - SECTOR O, and if
  161.  
  162. you pressed the "W" key and entered
  163.  
  164. TRACK 1 - SECTOR 1, sector 1 would
  165.  
  166. become an exact duplicate of sector 0.
  167.  
  168.  
  169. THE PLUS AND MINUS SYMBOLS.....
  170.  
  171.  
  172.   The PLUS and MINUS keys allow you
  173.  
  174. to "scroll" through disk sectors.
  175.  
  176. The DISK EDITOR will automatically
  177.  
  178. jump tracks when you try to read a
  179.  
  180. sector below 0 or above the track's
  181.  
  182. greatest possibility.  For example,
  183.  
  184. if you are at TRACK 20 - SECTOR 0,
  185.  
  186. pressing the MINUS key will display
  187.  
  188. TRACK 17 - SECTOR 20.
  189.  
  190.  
  191. THE EDIT MODE.....
  192.  
  193.  
  194.   The DISK EDITOR allows you to
  195.  
  196. change values in the sector that is
  197.  
  198. displayed.  First, though, you must
  199.  
  200. learn some things about moving the
  201.  
  202. yellow cursor which appears in the
  203.  
  204. upper left corner of the screen around
  205.  
  206. in the window.  You move the cursor,
  207.  
  208. of course, with the cursor keys.  As
  209.  
  210. you do so, you will notice that the
  211.  
  212. POSITION box continually keeps track
  213.  
  214. of the cursor.
  215.  
  216.  
  217.   The upper left corner is Position 1;
  218.  
  219. the lower right is Position 256.
  220.  
  221. Notice that moving the cursor down one
  222.  
  223. line will decrease the position by 40.
  224.  
  225. (Pressing the HOME key will return
  226.  
  227. the cursor to Position 1.)
  228.  
  229.  
  230.   In order to change the data within
  231.  
  232. the sector you are editing, you must
  233.  
  234. use either the TEXT MODE or you can
  235.  
  236. change single values.  To change a
  237.  
  238. single value, press "V".  You will
  239.  
  240. then be prompted to "enter new value".
  241.  
  242. This value must be a decimal number
  243.  
  244. between 0 and 255.  Or, if you enter
  245.  
  246. the "$" symbol followed by two
  247.  
  248. hexidecimal digits, the computer will
  249.  
  250. automatically translate it to the
  251.  
  252. screen.
  253.  
  254.  
  255.   If you need to type a series of
  256.  
  257. characters into the display window,
  258.  
  259. press "T".  You will then be asked to
  260.  
  261. select either upper or lower case
  262.  
  263. characters.  When the flashing cursor
  264.  
  265. appears, you can start typing.  But
  266.  
  267. if you make a mistake, don't use the
  268.  
  269. cursor keys to move around-- they
  270.  
  271. will only  display their ASCII
  272.  
  273. values.  Instead, use the DELETE key.
  274.  
  275. Once you have entered your
  276.  
  277. characters, press RETURN to return to
  278.  
  279. the EDIT MODE.
  280.  
  281.  
  282. JUMPING TRACKS AND BACK....
  283.  
  284.  
  285.   As you will probably notice quite
  286.  
  287. quickly, reading through a disk using
  288.  
  289. only the PLUS and MINUS commands could
  290.  
  291. take a while.  Also, if you try to
  292.  
  293. follow any kind of file besides a
  294.  
  295. relative file, these keys will not
  296.  
  297. show the next block of information for
  298.  
  299. that file.  The JUMP command allows
  300.  
  301. you to read the tracks and sectors
  302.  
  303. that link a program together.
  304.  
  305.  
  306.   To use the JUMP command, you must
  307.  
  308. position the cursor at Position 1 in
  309.  
  310. the display window (This character
  311.  
  312. represents the next track of the
  313.  
  314. file.) and press "J".  The computer
  315.  
  316. will then display the next link of
  317.  
  318. that file.
  319.  
  320.  
  321.   You may also use the JUMP command
  322.  
  323. while you are reading the BLOCK
  324.  
  325. AVAILABILITY MAP (BAM).  After you
  326.  
  327. read TRACK 18 - SECTOR 0, press "J"
  328.  
  329. to jump through the BAM.  You can now
  330.  
  331. place the cursor two characters in
  332.  
  333. front of any file name and press "J"
  334.  
  335. again to jump to the first sector of
  336.  
  337. that file.
  338.  
  339.  
  340.   If you want to jump back to the
  341.  
  342. sector you were reading before you
  343.  
  344. pressed "J", you can use the "B"
  345.  
  346. command to reread the last sector.
  347.  
  348.  
  349. THE DISK DIRECTORY....
  350.  
  351.  
  352.   To display a list of programs on
  353.  
  354. the disk, press "D".  Press the NO
  355.  
  356. SCROLL key to stop the list.  Press
  357.  
  358. any key to return to the work screen.
  359.  
  360.  
  361. DOS COMMAND AND DISK STATUS....
  362.  
  363.  
  364.   To access the DOS commands, press
  365.  
  366. the "@" key.  You will then see a ">"
  367.  
  368. sign and cursor.  You can type in
  369.  
  370. these commands:
  371.  
  372.  
  373. COMMAND              FORMAT
  374. -------              ------
  375.  
  376. INITIALIZE A DISK    I0
  377.  
  378. VALIDATE             V0
  379.  
  380. SCRATCH FILES        S0:filename
  381.  
  382. FORMAT               N0:header;id
  383.  
  384. RENAME FILENAME      R0:filename1=
  385.                         filename2
  386.  
  387.  
  388. Remember to type these commands
  389.  
  390. exactly as they are listed and to
  391.  
  392. press RETURN after each command.  To
  393.  
  394. return to EDIT MODE, press RETURN
  395.  
  396. again.
  397.  
  398.  
  399. DISK FILE USED:
  400.  
  401. DISK EDITOR 128
  402.  
  403. -----------< end of text >------------
  404.